﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DeAn_LapTrinhCSDL.UserControl;

namespace DeAn_LapTrinhCSDL
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void navBarItem_NhaCC_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucNhaCC ucNhaCC = new ucNhaCC();
            ucNhaCC.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucNhaCC);
        }

        private void navBarItem_VatTu_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucVatTu ucVatTu = new ucVatTu();
            ucVatTu.Dock= DockStyle.Fill;
            panelControl1.Controls.Add(ucVatTu);
        }

        private void navBarItem_PXuat_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucPXuat ucPX = new ucPXuat();
            ucPX.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucPX);
        }

        private void navBarItem_PNhap_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucPNhap ucPN = new ucPNhap();
            ucPN.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucPN);
        }

        private void navBarItem_DonDH_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucDonDH ucDH = new ucDonDH();
            ucDH.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucDH);
        }
    }
}
